package ljm.client;
import ljm.server.Server;
import java.rmi.Naming;



//在运行客户端
public class Client {
    public static void main(String[] args) throws Exception {
        Server server = (Server) Naming.lookup("rmi://localhost:8888/Server");
        String hello = server.hello();
        System.out.println(hello);
    }
}